﻿namespace Traffic.Entity;

/// <summary>
/// 接送订单排车表
/// </summary>
public partial class PickupOrderGroup
{
    public int Id { get; set; }

    /// <summary>
    /// 对应Business.ID
    /// </summary>
    public int BusinessId { get; set; }

    /// <summary>
    /// 接送类型   2：去程接送   3：回程接送   4：回程预约
    /// </summary>
    public int PickupType { get; set; }

    /// <summary>
    /// 系统操作员ID，对应SysAccount.ID
    /// </summary>
    public int SysUserId { get; set; }

    /// <summary>
    /// 系统操作员姓名  对应SysAccount.RealName
    /// </summary>
    public string? SysUserName { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 接送日期
    /// </summary>
    public DateTime PickupDate { get; set; }

    /// <summary>
    /// 组别名称  例：A  B
    /// </summary>
    public string GroupName { get; set; } = null!;

    /// <summary>
    /// 行程走法   懿峰候机楼-客户地址A-客户地址B-懿峰候机楼
    /// </summary>
    public string? FromTo { get; set; }

    /// <summary>
    /// 接送车牌
    /// </summary>
    public string? CarNo { get; set; }

    public int? DriverId { get; set; }

    /// <summary>
    /// 司机姓名
    /// </summary>
    public string? DriverName { get; set; }

    /// <summary>
    /// 司机电话
    /// </summary>
    public string? DriverMobile { get; set; }

    /// <summary>
    /// 开始执行时间
    /// </summary>
    public DateTime? StartJobTime { get; set; }

    /// <summary>
    /// 执行结束时间
    /// </summary>
    public DateTime? EndJobTime { get; set; }

    /// <summary>
    /// 总里程公里数
    /// </summary>
    public double TotalMileage { get; set; }

    /// <summary>
    /// 修改记录
    /// </summary>
    public string? EditMsg { get; set; }

    /// <summary>
    /// 是否超时加班
    /// </summary>
    public bool IsOverTime { get; set; }

    /// <summary>
    /// 工作进度  0：未开始  1：进行中  2：已完成  3：中断  4：打回
    /// </summary>
    public int JobState { get; set; }

    /// <summary>
    /// 是否已完成
    /// </summary>
    public bool? IsFinish { get; set; }

    /// <summary>
    /// 记录状态  默认1：正常 0：作废
    /// </summary>
    public bool Status { get; set; }
}
